
; $VER: Install_BootX 1.01 (11.7.92)

	failat 20

	version >NIL: exec.library 37
	if warn
	  echo "*nYou need KickStart 2.0 or higher to use this version of BootX."
	  echo "BootX v4.50 was the last version that supported KickStart 1.3."
	  echo "*nPlease upgrade your system. Your Amiga will thank you."
	  skip End
	endif

	if exists C:Installer
	  echo "*nRunning the Commodore Installer utility..."
	  installer >NIL: installer.script "BootX 5.00" novice expert english
	  skip Completed
	else
	  echo "*nA script for the Commodore Installer utility has been provided.*n"

	  echo "However since this program is copyrighted by Commodore Amiga I can"
	  echo "not spread it with this release."
	  echo "You can find this program on the Install disk that came with your"
	  echo "Amiga or in the KickStart 2.x upgrade package."
	  echo "Copy the Installer utility to C:."

	  echo "You are now given the choice to continue to install BootX using the"
	  echo "defaults built into this script or to abort the installation and to"
	  echo "restart it after you have copied the Installer program in the C:"
	  echo "directory.*n"

	  ask "Shall I continue to install BootX ?"
	  if not warn
	    skip Aborted
	  else
	    skip Install
	  endif
	endif

lab Install
	if not exists Work:Utilities
	  echo "*nCreating directory 'Work:Utilities'..."
	  makedir Work:Utilities
	endif

	echo "Copying BootX and support files..."
	copy BootX#? Work:Utilities quiet clone buffer=0

	echo "Copying libraries..."
	copy Libs/#? Libs: quiet clone buffer=0

	echo "Copying Locale files..."
	copy Locale Locale: all quiet clone buffer=0

lab Completed
	echo "Installation completed.*n"
	skip End

lab Aborted
	echo "Installation aborted!*n"

lab End
	wait 5
	endcli >NIL:
